#include "DB1.h"
#include "global.h"
DB1_s *DB1_t = (DB1_s *)plc_DB[1]; /* DB1数据块结构体实例绑定到Plc_DB[1] */
void init_DB1(void) {
  DB1_t->JiCunQiShuZu[0] = 0x1; // 10100101
  DB1_t->JiCunQiShuZu[1] = 0x2;
  DB1_t->JiCunQiShuZu[2] = 0x3;
  DB1_t->JiCunQiShuZu[3] = 0x4;
  DB1_t->JiCunQiShuZu[4] = 0x5;
  DB1_t->JiCunQiShuZu[5] = 0x6;
  DB1_t->JiCunQiShuZu[6] = 0x7;
  DB1_t->JiCunQiShuZu[7] = 0x8;
}
void loop_DB1(void) {
  DB1_t->JiCunQiShuZu[0] += 0;
  DB1_t->JiCunQiShuZu[1] += 1;
  DB1_t->JiCunQiShuZu[2] += 2;
  DB1_t->JiCunQiShuZu[3] += 3;
  DB1_t->JiCunQiShuZu[4] += 4;
  DB1_t->JiCunQiShuZu[5] += 5;
  DB1_t->JiCunQiShuZu[6] += 6;
  DB1_t->JiCunQiShuZu[7] += 7;
}
